package com.csu.tour.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.boot.autoconfigure.domain.EntityScan;

@Data
@EntityScan
@TableName(value = "user")
public class User {
    @TableId(value = "user_id",type = IdType.AUTO)
    private int id;
    @TableField(value = "user_name")
    private String username;

    private String password;

    private long phone;

    private int age;

    private String sex;

    @EnumValue
    private String role;

}
